//
//  TYCyclePagerViewCell.m
//  TYCyclePagerViewDemo
//
//  Created by tany on 2017/6/14.
//  Copyright © 2017年 tany. All rights reserved.
//

#import "TYCyclePagerViewCell.h"

@interface TYCyclePagerViewCell ()
@property (nonatomic, weak) UILabel *label;
@end

@implementation TYCyclePagerViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        mImageView = [[UIImageView alloc]initWithFrame:self.bounds];
        mImageView.contentMode = UIViewContentModeScaleAspectFill;
        mImageView.layer.masksToBounds = YES;
        [self addSubview:mImageView];
    }
    return self;
}
-(void)reloadData:(NSString *)path{
    [mImageView sd_setImageWithURL:[NSURL URLWithString:path] placeholderImage:nil];
}


@end
